import Mock from 'mockjs';
// 第二步：引入刚才定义好的js
import Home from './Home.js';
import User from './User.js';
import goodsDetailList from './GoodsDetail.js';
import cateGories from './Categories.js';
import collect from './collects.js';
import receive from './receive.js';
import shopDetail from './shopDetails';
import designlists from './DesignList';
import exclusivelists from './ExclusiveList';
import teamlists from './TeamList';
import fitmentlist from './fitmentlist.js';
import fitment from './fitment.js';
// 第三步：定义一个接口,这里的意思是，我通过get方式访问/goodsList的时候，返回Home.goodsList的数据
const goodsList = Mock.mock('/goodsList', 'get', () => Home.goodsList);
const goodsdetailList = Mock.mock('/goodsdetailList', 'get', () => goodsDetailList.goodsDetailList);
const categories = Mock.mock('/categories', 'get', () => cateGories.allGoods);
const user = Mock.mock('/user', 'get', () => User);
const collects = Mock.mock('/collects', 'get', () => collect.collects);
const receives = Mock.mock('/receives', 'get', () => receive.receive);
const shopDetails = Mock.mock('/shopDetails', 'get', () => shopDetail.shopDetailList);
const designlist = Mock.mock('/designlist', 'get', () => designlists.designlist);
const exclusivelist = Mock.mock('/exclusivelist', 'get', () => exclusivelists.exclusivelist);
const teamlist = Mock.mock('/teamlist', 'get', () => teamlists.teamlist);
const fitmentInfo = Mock.mock('/fitmentInfo', 'get', () => fitmentlist.fitmentInfo);
const fitmentList = Mock.mock('/fitmentList', 'get', () => fitment.fitmentList);
// 第四步：再暴露出去

export default {
  user,
  goodsdetailList,
  categories,
  collects,
  receives,
  shopDetails,
  goodsList,
  designlist,
  exclusivelist,
  teamlist,
  fitmentInfo,
  fitmentList,
};
